<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'request.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <form action="<%=basePath %>paramCharater" method="get">
	   	name:<input type="text" name="username" />
	   		<input type="submit" value="提交"/>
   </form>
   <hr>
   <form action="<%=basePath %>paramCharater" method="post">
	   	name:<input type="text" name="username" /><br>
	   	password:<input type="password" name="password" /><br>
	   	gender:<input type="radio" name="gender" value="male" />男<input type="radio" name="gender" value="famale" />女<br>
	   	hobby:<input type="checkbox" name="hobby" value="play" />游戏<input type="checkbox" name="hobby" value="run" />跑步<br>
	   	<input type="checkbox" name="hobby" value="read" />读书<input type="checkbox" name="hobby" value="swim" />游泳<br>
	   	学历：<select name="degree">
	   		<option value="博士">博士
	   		<option value="硕士">硕士
	   		<option value="学士">学士
	   	</select><br>
	   	备注：<textarea rows="5" cols="60"></textarea>
	   	
	   		<input type="submit" value="提交"/>
	   		
   </form>
  </body>
</html>
